#!/bin/bash
#========================================================================
# Author: YSLin
# Email: 
# File Name: install.sh
# Description: 
#   
# Edit History: 
#   2011-03-17    File created.
#========================================================================

adb remount
adb push build.prop /system
#GoogleServicesFramework.apk
#Vending.apk
#Talk.apk 
#GoogleContactsSyncAdapter.apk
adb push system/app/GSF.apk /system/app
adb shell chmod 6755 /system/app/GSF.apk
adb push system/app/V.apk /system/app
adb shell chmod 6755 /system/app/V.apk 
adb push system/app/T.apk /system/app 
adb shell chmod 6755 /system/app/T.apk 
adb push system/app/GCSA.apk /system/app 
adb shell chmod 6755 /system/app/GCSA.apk 

for xml in permissions/*.xml
do
	adb push $xml /system/etc/permissions
done;
#要殺掉.android/avd/AVD2.3_Market/cache.img userdata.img userdata-qemu.img
#need reboot manually for emulator
#adb reboot
